﻿<Application xmlns="http://schemas.microsoft.com/client/2007"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="SuperGo.Silverlight.App"
             >
    <Application.Resources>
        <!--<Style x:Key="ExpandableCanvas" TargetType="Canvas">
            <Setter Property="Width" Value="{TemplateBinding Width}" />
            <Setter Property="Height" Value="{TemplateBinding Height}" />
        </Style>-->
        <Style x:Key="RoundButton"  TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <Ellipse Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
                                <Ellipse.Fill>
                                    <RadialGradientBrush GradientOrigin=".2,.2">
                                        <GradientStop Offset="0.2" Color="White" />
                                        <GradientStop Offset="1" Color="#C0BB7E" />
                                    </RadialGradientBrush>
                                </Ellipse.Fill>
                            </Ellipse>
                            
                            <ContentPresenter 
                                Content="{TemplateBinding Content}" 
                                FontSize="{TemplateBinding FontSize}" 
                                FontFamily="{TemplateBinding FontFamily}"
                                Foreground="#AD6C3D"
                                HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="ContinueButtonLine" TargetType="Line">
            <Setter Property="Stroke" Value="#AD6C3D" />
            <Setter Property="StrokeEndLineCap" Value="Round" />
            <Setter Property="StrokeStartLineCap" Value="Round" />
            <Setter Property="StrokeThickness" Value="3" />
        </Style>

        <Style x:Key="ContinueButton"  TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <Ellipse Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
                                <Ellipse.Fill>
                                    <RadialGradientBrush GradientOrigin=".2,.2">
                                        <GradientStop Offset="0.2" Color="White" />
                                        <GradientStop Offset="1" Color="#C0BB7E" />
                                    </RadialGradientBrush>
                                </Ellipse.Fill>
                            </Ellipse>

                            <Line X1="5" Y1="10" X2="15" Y2="10" Style="{StaticResource ContinueButtonLine}" />
                            <Line X1="10" Y1="6" X2="15" Y2="10" Style="{StaticResource ContinueButtonLine}" />
                            <Line X1="10" Y1="14" X2="15" Y2="10" Style="{StaticResource ContinueButtonLine}" />

                            <ContentPresenter 
                                Content="{TemplateBinding Content}" 
                                FontSize="{TemplateBinding FontSize}" 
                                FontFamily="{TemplateBinding FontFamily}"
                                HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Application.Resources>
</Application>
